import request from "@/sheep/request";

export default {
  login: (data) =>
    request({
      url: "/auth/login",
      method: "POST",
      data: data,
    }),
  
  login_out: (params) =>
    request({
      url: "/app_api.php?t=login&op=login_out",
      method: "POST",
      data: params,
    }),
  getUserInfo: (params) =>
    request({
      url: "/system/user/getInfo",
      method: "GET",
      params: params,
      custom: {
        showSuccess: true,
        auth: true,
      },
    }),
};
